﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JY.Wpf.Core.Tools
{
    /// <summary>
    /// ViewModel属性标识
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class ViewModelPropertyAttribute : Attribute
    {
        /// <summary>
        /// ViewModel属性标识
        /// </summary>
        /// <param name="isList">是否集合属性</param>
        public ViewModelPropertyAttribute(bool isList=false)
        {
            this.IsList = isList;
        }
        /// <summary>
        /// 是否ViewModel集合
        /// </summary>
        public bool IsList { get; set; }
    }
}
